var express = require('express');
var router = express.Router();


var walleArticleCtrl = require('../controllers/walleArticleCtrl');
router.get('/home', function (req, res) {

    return res.redirect(303, '/views/walleCateHome.html');
});


router.get('/', walleArticleCtrl.get);
router.get('/:id', walleArticleCtrl.getOne);
router.post('/add', walleArticleCtrl.add);
router.post('/update', walleArticleCtrl.update);
router.post('/delete', walleArticleCtrl.remove);



module.exports = router;
